package com.ql.controller;

import com.ql.service.socket.Server;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

//@Controller
public class RunStartOne implements ServletContextListener {
    @Autowired
    Server server;

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        server.start();
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {

    }
}
